﻿<%@ Page Language="C#" %>

<%@ Import Namespace="wojilu" %>
<%@ Import Namespace="wojilu.View" %>
<%@ Import Namespace="wojilu.Web.Controller" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Domain" %>
<%var lngs = v.data("lngs") as String; %>
<%var form = v.data("form") as Form_Group; %>
<%var formattr = v.data("formattr") as List<Form_Attr>;%>
<%ctx.setItem("menuid", "6"); %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:wb="”http://open.weibo.com/wb”">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <title>#{pageTitle}</title>
    <meta name="Keywords" content="#{pageKeywords}" />
    <meta name="description" content="#{pageDescription}" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta http-equiv="pragma" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
    <meta http-equiv="expires" content="0" />
    <link href="#{templates}css/stylea.css" rel="stylesheet" />
    <link href="#{templates}css/top.css" rel="stylesheet" />
    <script type="text/javascript" src="#{templates}js/jq1.91.js"></script>
    <link href="#{templates}css/about.css" rel="stylesheet" />
    <link href="#{templates}css/global1.css" rel="stylesheet" />
    <link href="#{templates}css/page.css" rel="stylesheet" />
    <link href="#{templates}css/service1.css" rel="stylesheet" />
    <script type="text/javascript" src="#{templates}js/jQuery1.js"></script>
    <script type="text/javascript" src="#{path.js}ybb/js/basicrun.js"></script>
    <script type="text/javascript" src="#{path.js}ybb/js/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript">
        var seccode_empty = "<%=YBBCommon.GetLangStr(lngs,"seescodeerr")%>";
        function #{form.formcode}form(seccodetype) {
            <%foreach (var row in formattr) {%>
            <%if(row.isvalidate ==1){%>
            <%if(row.validatetext  !=""){%>
            if(document.#{form.formcode}.<%=row.attrname%>.value.match(<%=row.validatetext%>ig)==null) {
                <%}else{%>
                if(document.#{form.formcode}.<%=row.attrname%>.value==''){
                    <%}%>
                    document.#{form.formcode}.<%=row.attrname%>.focus();
                        alert('<%=row.typename%>输入错误，请返回重新输入');
                        return false;
                    }
                    <%}%>
                    <%}%>

                if(seccodetype=='1' && document.#{form.formcode}.seccode.value.match(/^[A-Z0-9]{4}$/ig)==null) {
                    document.<%=form.formcode%>.seccode.focus();
                    alert(seccode_empty);
                    return false;
             }
}
</script>
</head>
<body class="newsbg">
    #{top}
    <!--/*++++++++内容++++++++*/-->


    <div class="clearfix">
        <h2 class="gCurMenu">招贤纳士</h2>
        <div class="gMenu clearfix">
            <ul class="pngFix">
                <%var typeread = TypeList.find(" Id=6").first(); %>
                <%var list1 = new List<TypeList>(); %>
                <%if (typeread.upid == 0)
                  {
                      list1 = TypeList.find(" upid = " + typeread.Id + " order by pid asc,id asc").list();
                  }
                  else
                  {
                      list1 = TypeList.find(" upid = " + typeread.Id + " order by pid asc,id asc").list();
                      if (list1.Count == 0)
                      {
                          list1 = TypeList.find(" upid = " + typeread.upid + " order by pid asc,id asc").list();
                      }
                  } %>
                <%foreach (var row in list1)
                  { %>
                <li <%if (row.Id == 44)
                      { %>class="cur" <%} %>><a href="<%=row.glink %>"><%=row.typename %></a></li>
                <%} %>
            </ul>
        </div>
        <div class="site">
            <div class="jobMain">
                <div class="jobinfoTable1">
                    <form name="#{form.formcode}" id="#{form.formcode}" method="post" action="<%=link.to(new PublicController().FormSave,1) %>"  onSubmit="return #{form.formcode}form('#{form.isseccode}')">
					<input type="hidden" name="tokenkey" value="#{token_key}"/>
					<input type="hidden" name="fgid" id="fgid" value="#{form.fgid}" />
					<input type="hidden" name="formcode" id="formcode" value="#{form.formcode}" />
					<table style="width: 100%" class="formlist">
						<tr>
							<th class="th2"></th>
							<td>#{form.content}</td>
						</tr>
                        <%foreach(var row in formattr){ %>
                        <%if(row.isline==1){ %>
						<tr>
							<td colspan="2" class="content"><%=row.typename %></td>
						</tr>
						<%}else{ %>
						<tr>
							<th class="th2"><%if(row.isvalidate==1){ %>* <%} %><%=row.typename %></th>
							<td>
                                <%if (row.inputtype == "string" || row.inputtype == "int" || row.inputtype == "float" || row.inputtype == "decimal") { %>
									<input type="text" name="<%=row.attrname %>" size="<%=row.attrsize %>" maxlength="<%=row.attrlenther %>" value="<%=row.attrvalue %>" class="infoInput"/><%} %>
                                <%if(row.inputtype=="datetime"){ %>
									 <input type="text" name="<%=row.attrname %>" size="<%=row.attrsize %>" id="<%=row.attrname %>" onclick="WdatePicker({el:'<%=row.attrname%>',readOnly:true,dateFmt:'yyyy-MM-dd HH:mm:ss'})" maxlength="<%=row.attrlenther %>" class="infoInput"/>
								<%} %>
                                <%if (row.inputtype == "selectinput") { %>
								<input type="text" name="<%=row.attrname %>" size="<%=row.attrsize %>" id="<%=row.attrname %>" value="" maxlength="<%=row.attrlenther %>" class="infoInput"/>
								<select size="1" name="<%=row.attrname %>selectinputvalue" onchange="javascript:$('#<%=row.attrname %>').val(this.value)">
									<option value=""><%=row.typename %></option>
									<%var strArray = row.attrvalue.SplitStringh(); %>
									<%foreach (var row1 in strArray){ %>
									<option value="<%=row1 %>"><%=row1 %></option>
									<%} %>
								</select>
								<%} %>
                                <%if(row.inputtype=="img"){ %>
									<input type="text" name="<%=row.attrname %>" size="<%=row.attrsize %>" value="<%=row.attrvalue %>" class="infoInput"/>
								<%} %>
                                <%if (row.inputtype == "addon") { %>
									<input type="text" name="<%=row.attrname %>" size="<%=row.attrsize %>" value="<%=row.attrvalue %>" class="infoInput"/>
								<%} %>
								<%if (row.inputtype == "text") { %><textarea name="<%=row.attrname %>" cols="<%=row.attrsize %>" rows="<%=row.attrrow %>" class="infoInput"><%=row.attrvalue %></textarea><%} %>
								<%if (row.inputtype == "htmltext") { %><textarea name="<%=row.attrname %>" cols="<%=row.attrsize %>" rows="<%=row.attrrow %>" class="infoInput"><%=row.attrvalue %></textarea><%} %>
								<%if (row.inputtype == "editor") { %><textarea name="<%=row.attrname %>" cols="<%=row.attrsize %>" rows="<%=row.attrrow %>" class="infoInput"><%=row.attrvalue %></textarea><%} %>
								<%if (row.inputtype == "select") { %>
									<select size="1" name="<%=row.attrname %>">
									<%var strArray = row.attrvalue.SplitStringh(); %>
									<%foreach (var row1 in strArray){ %>
									<option value="<%=row1 %>"><%=row1 %></option>
									<%} %>
									</select>
								<%} %>
                                <%if (row.inputtype == "radio") { %>
									<%var strArray = row.attrvalue.SplitStringh(); %>
									<%foreach (var row1 in strArray){ %>
									<input type="radio" value="<%=row1 %>" name="<%=row.attrname %>" /> <%=row1 %>&nbsp;
									<%} %>
								<%} %>
                                <%if (row.inputtype == "checkbox") { %>
									<%var strArray = row.attrvalue.SplitStringh(); %>
									<%foreach (var row1 in strArray){ %>
									<input type="checkbox" value="<%=row1 %>" name="[%$modelatt[list].attrname%][]"/> [%$modelatt[list].attrvalue[ii].name%]&nbsp;
									<%} %>
								<%} %>
								<%if(row.typeremark !=""){ %><span><%=row.typeremark %></span><%} %>
							</td>
						</tr>
						<%} %>
						<%} %>
                        <%if(form.isseccode==1){ %>
						<tr>
							<th>验证码</th>
							<td>
								<input type="text" id="code" name="seccode" class="infoInput" maxlength="4" size="3" style="text-transform: uppercase;"/>
								<img title="点击更换验证码" id="#{form.formcode}seccodesrc" onclick="sessionimg('#{form.formcode}seccodesrc','#{dir}')" src="#{path}VerifyCode.ashx?len=4" style="cursor: pointer;" align="absmiddle"/>
							</td>
						</tr>
						<%} %>
						<tr>
							<td></td>
							<td>
								<input type="submit" id="#{form.formcode}botton" name="Submit" value="确认提交" class="buttonface2" />
							</td>
						</tr>
					</table>
					</form>
                </div>
            </div>
        </div>
    </div>
    #{bottom}
</body>
</html>
